package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.model.wemedia.dtos.WmNewsPageDto;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vos.AdminArticleVO;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    /**
     * 低级方法
     * @return
     */
    public List<AdminArticleVO> adminSearch(@Param("title") String title,
                                   @Param("status") Integer status,
                                   @Param("begin") Integer begin,
                                   @Param("size") Integer size);

    public IPage<AdminArticleVO> adminSearch2(IPage<AdminArticleVO> page, @Param("dto")WmNewsPageDto dto);
}
